import Vue from 'vue'
import App from './App.vue'
import axios from "axios"
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from "@/store"


Vue.config.productionTip = false
Vue.prototype.axios = axios
Vue.use(ElementUI)
axios.defaults.baseURL = "http://localhost:3000/"


// axios.interceptors.request.use((item)=>{
//   let token = sessionStorage.getItem("token")
//   if(token){
//     item.headers.Authorization = token
//   }
//   return item
// })



new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
